<template>
	<view class="content">
		<view style="height: 1px;"></view>
		<view class="boxs" v-for="item in notice">
			
			<view class="boxs_tit">
        {{ item.name }}
			</view>
			<view class="boxs_time">
        {{ item.time }}
			</view>
			<view class="boxs_desc">
        {{ item.desc }}
			</view>
			<view style="height: 10px;"></view>
		</view>
		
			
	</view>
</template>

<script>
	import { curl } from 'common/api.js';
	export default {
		data() {
			return {
        notice:[]
			}
		},
    onLoad() {
			let that=this;
      this.getnotice();
		},
		methods: {
      // 通知
      getnotice() {
        var that = this;
        curl('index/getallnotice', {}).then((res) => {
          console.log(res.data);
          that.notice = res.data
        });
      },
		}
	}
</script>

<style>
	
	.boxs_desc{
		width: 680rpx;height: auto;
		margin: auto;
		font-size: 28rpx;
		color: #333333;
	}
	.boxs_time{
		width: 680rpx;margin: auto;
		line-height: 50rpx;
		height:50rpx;
		font-size: 26rpx;
		font-weight: 400;
		color: #555555;
	}
	.boxs_tit{
		width: 680rpx;margin: auto;
		line-height: 100rpx;
		height:80rpx;
		font-size: 32rpx;
		font-weight: 500;
	}
	
	.boxs{
		width: 710rpx;height: auto;
		background: #ffffff;border-radius: 20rpx;
		margin: 20rpx auto;
			
	}
	
	.content{
		width: 100%;
		min-height: 100vh;
		background: #fafafa;
	}

</style>
